package com.yunxi.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 发票表
 * </p>
 *
 * @author 
 * @since 2019-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_order_receipt")
@ApiModel(value="OrderReceipt对象", description="发票表")
public class OrderReceipt implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "RECEIPT_ID", type = IdType.UUID)
    private String receiptId;

    @ApiModelProperty(value = "订货单号")
    @TableField("ORDER_VEHICLE_ID")
    private String orderVehicleId;

    @ApiModelProperty(value = "渠道商编号")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "行号")
    @TableField("POSNR")
    private String posnr;

    @ApiModelProperty(value = "ERP发票号")
    @TableField("VBELN")
    private String vbeln;

    @ApiModelProperty(value = "金税发票号")
    @TableField("VATNO")
    private String vatno;

    @ApiModelProperty(value = "开票金额")
    @TableField("NETWR")
    private String netwr;

    @ApiModelProperty(value = "开票日期")
    @TableField("FKDAT")
    private String fkdat;

    @ApiModelProperty(value = "SAP销售订单号")
    @TableField("ZUONR")
    private String zuonr;

    @ApiModelProperty(value = "开票类型")
    @TableField("FKART")
    private String fkart;

    @ApiModelProperty(value = "销售组织")
    @TableField("VKORG")
    private String vkorg;

    @ApiModelProperty(value = "预留字段1")
    @TableField("ZOBL1")
    private String zobl1;

    @ApiModelProperty(value = "预留字段2")
    @TableField("ZOBL2")
    private String zobl2;

    @ApiModelProperty(value = "预留字段3")
    @TableField("ZOBL3")
    private String zobl3;

    @ApiModelProperty(value = "预留字段4")
    @TableField("ZOBL4")
    private String zobl4;

    @ApiModelProperty(value = "预留字段5")
    @TableField("ZOBL5")
    private String zobl5;

    @ApiModelProperty(value = "创建日期")
    @TableField(value = "CREATE_DATE",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "是否删除（1是 0否）")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "是否启用（1启动 0不启用）")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "版本")
    @TableField("VERSION")
    private Integer version;

    @ApiModelProperty(value = "是否签收")
    @TableField("IS_SIGN")
    private Integer isSign;

    @ApiModelProperty(value = "签收时间")
    @TableField("SIGN_DATE")
    private Date signDate;


}
